<?php
 
namespace models\entities;
 
/**
 * @Entity(repositoryClass="models\repositories\AktivitasUserDokumenRepository")
 * @Table(name="aktivitas_user_dokumen")
 */
class AktivitasUserDokumen {
 
/**
 * @Id
 * @Column(name="id", type="integer", length=11, unique=true, nullable=false)
 */
	protected $id;

/**
 * @Column(name="id_dok", type="integer", length=11, nullable=false)
 */
	protected $idDok;
 
/**
 * @Column(name="user_id", type="string", length=45, nullable=false)
 */
	protected $userId;
	
/**
 * 
 * @ManyToOne(targetEntity="JenisAktivitas")
 * @JoinColumn(name="jenis_aktivitas_id", referencedColumnName="id")
 */
	protected $jenisAktivitas;
 
/**
 * @Column(name="timestamp", type="datetime", nullable=true)
 */
	protected $timestamp; 
 
 
	public function setId($id)
	{
	    $this->id = $id;
	}
 
	public function getId()
	{
	    return $this->id;
	}

	public function setIdDok($idDok)
	{
	    $this->idDok = $idDok;
	}
 
	public function getIdDok()
	{
	    return $this->idDok;
	}

	public function setUserId($userId)
	{
	    $this->userId = $userId;
	}
 
	public function getUserId()
	{
	    return $this->userId;
	}

	public function setJenisAktivitas($jenisAktivitas)
	{
	    $this->jenisAktivitas = $jenisAktivitas;
	}
 
	public function getJenisAktivitas()
	{
	    return $this->jenisAktivitas;
	}
	
	public function setTimestamp($timestamp)
    {
        // will NOT be saved in the database
        $this->timestamp = new \DateTime("now");
    }
    
	public function getTimestamp()
    {
        return $timestamp;
    }
	
}